<{include file="header.tpl"}>
<script language='javascript'>
    function checkpass()
    {
        if( document.myform.userpwd.value == document.form1.userpwdok.value)
        {
            document.getElementById('pwdtest').innerHTML = "";
            return true;
        }
        else
        {
            document.getElementById('pwdtest').innerHTML = "[两次输入密码效验不正确！]";
            return false;
        }
    }
</script>

    <div class="comBox">
        <div class="comHeader">
            修改密码
        </div>
        <form name="myform" actiom="" method="POST" onsubmit="return checkpass()" enctype="multipart/form-data">
            <input type="hidden" name="uid" value="<{$v.uid}>" />
            <div class="comTable bt">
                <table class="siteInfo">
                    <input type='hidden' name='uid' value='<{$v.uid}>' />
                    <tr>
                        <th width="15%">用户名：</th>
                        <td>
                            <{$v.user_name}>
                        </td>
                    </tr>
                    <tr>
                        <th>用户密码：</th>
                        <td>
                            <input type='input' name='userpwd' id='userpwd' class="text" value='' onchange='checkpass()' />
                            <span>(必须大于6位)</span>
                        </td>
                    </tr>
                    <tr>
                        <th>确认密码：</th>
                        <td>
                            <input type='input' name='userpwdok' id='userpwdok' class="text" value='' onchange='checkpass()' />
                            <span id='pwdtest' style='color:red'></span>
                        </td>
                    </tr>
                    <tr>
                        <th>Email：</th>
                        <td>
                            <{$v.email}>
                        </td>
                    </tr>
                    <tr>
                        <th>用户组：</th>
                        <td>
                            <{$v.groups|groupname}>
                        </td>
                    </tr>
                    <tr>
                        <th>上次登录时间：</th>
                        <td>
                            <{$v.logintime|date_format:"%Y-%m-%d %H:%M:%S" }>
                        </td>
                    </tr>
                    <tr>
                        <th>上次登录IP：</th>
                        <td>
                            <{$v.loginip}>
                        </td>
                    </tr>
                    <tr>
                        <th></th>
                        <td>
                            <button type="submit" class="sub">保存</button>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        </form>
    </div>
<{include file="footer.tpl"}>
